document.write('<link href="/plug-in/mCustomScrollbar/jquery.mCustomScrollbar.css" rel="stylesheet">');
document.title = '北京鲲博时代信息科技有限公司';
// 解决ie9及以下不兼容ajax
jQuery.support.cors = true;
$('ul.hoverTabBox li').mouseover(function(){
	$(this).addClass('index').siblings().removeClass('index')
	$(this).parent().siblings('div.hoverShow').removeClass('index')
	$(this).parent().siblings('div.hoverShow').eq($(this).index()).addClass('index')
})
var headerHtml = '';
headerHtml += '<div class="logo"><a href="/index.html"><img src="/images/logo.svg"></a></div><ul>'
headerHtml += '<li class="active"><a href="/index.html">首页</a></li>'
headerHtml += '<li><a href="/html/manufacturing.html">智能制造</a></li>'
headerHtml += '<li><a href="/html/internet.html">工业互联网</a></li>'
headerHtml += '<li><a href="/html/iot.html">智慧物联</a></li>'
headerHtml += '<li><a href="/html/bim.html">智慧运维</a></li>'
headerHtml += '<li><a href="/html/wisdomMine.html">智慧矿山</a></li>'
headerHtml += '<li><a href="/html/teach.html">智慧教育</a></li>'
headerHtml += '<li class="app"><a href="javascript:void(0)">产品分类</a>'
headerHtml += '</li>'
headerHtml += '<li><a href="/html/about.html">关于我们</a></li>'
headerHtml += '</ul><div class="phone">010-21737292</div>'
$('.header').html(headerHtml)
$('.header ul li').eq(nav).addClass('active').siblings().removeClass('active');
let ulHtml = ''
ulHtml += '<div class="ul content"><div class="box">'
ulHtml += '	<div class="li">'
ulHtml += '		<div class="title">自研平台产品</div>';
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=SOA微服务平台FutureCloud">SOA微服务平台FutureCloud</a></div>';
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=微服务运维系统">微服务运维系统</a></div>';
ulHtml += '		<div class="dt"><a href="javascript:void(0)">微服务客户系统</a></div>';
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=CPS总线系统">CPS总线系统</a></div>';
ulHtml += '	</div>'
ulHtml += '	<div class="li">'
ulHtml += '		<div class="title">行业应用系统</div>'
// ulHtml += '		<div class="dt"><a href="javascript:void(0)">大宗商品</a></div>'
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=智能洗煤厂管理系统">智能洗煤厂系统</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">智能一体化计量系统</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)"">智慧矿山解决方案</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">大宗物料运销解决方案</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)"">边坡监测系统方案</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">无人值守系统解决方案</a></div>'
// ulHtml += '		<div class="dt"><a href="javascript:void(0)">车间联网</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">生产OEE分析系统</a></div>'
// ulHtml += '		<div class="dt"><a href="javascript:void(0)">风机行业</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">风机选型系统（常规&变型选型）</a></div>'
// ulHtml += '		<div class="dt"><a href="javascript:void(0)">其他</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">报价系统</a></div>'
ulHtml += '	</div>'
ulHtml += '	<div class="li">'
ulHtml += '		<div class="title">自研系统产品</div>';
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=协同营销系统CRM">协同营销系统CRM</a></div>';
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=物联网系统IOT">物联网系统IOT</a></div>';
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=大数据系统BigData">大数据系统BigData</a></div>';
ulHtml += '		<div class="dt"><a href="/html/product-detail.html?product=产品售后运维系统MRO">产品售后运维系统MRO</a></div>';
ulHtml += '		<div class="dt"><a href="javascript:void(0)">工厂设备管理系统</a></div>';
ulHtml += '	</div>'
ulHtml += '	<div class="li">'
ulHtml += '		<div class="title">智能硬件</div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">SmartDT 200工业IOT网络控制器</a></div>'
ulHtml += '		<div class="dt"><a href="javascript:void(0)">LED-Z10 工业LED无线（Zigbee）控制器</a></div>'
ulHtml += '	</div>'
ulHtml += '</div></div>'
$('body').append(ulHtml)
$('.header ul li.app').hover(function(){
	$('div.ul').show()
},function(){
})
$('div.ul').hover(function(){
	$('div.ul').show()
},function(){
	$('div.ul').hide()
})
$(window).scroll(function(){
	topGo()
});
topGo()
function topGo () {
	var height = $('.banner').height() - 60
	if (height < 0) {
		$('.header').css('background', 'none')
	}
	// 滚动条滚动
	var isTop1 = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;// (获取屏幕滚动高度)
	if(isTop1 > height){
		$('.header').css('background', '#2D2D2D')
	}
	else {
		$('.header').css('background', 'none')
	}
}
function bannerPlay () {
	$('.swiper-container').css('height', $('.swiper-slide >img').height())
	// 轮播图
	var mySwiper = new Swiper ('.swiper-container', {
	  loop: true,
	  autoplay: 3000,
	  autoplayDisableOnInteraction: false,
		pagination : '.pagination',
		paginationClickable: true
	  // nextButton: '.swiper-button-next',
	  // prevButton: '.swiper-button-prev',
		// createPagination: true,
		// paginationClickable :true
	})
	$('.swiper-container').hover(function(){
		$('.swiper-button-next').show()
		$('.swiper-button-prev').show()
	},function(){
		$('.swiper-button-next').hide()
		$('.swiper-button-prev').hide()
	})
}
function getIndex() {
	for (var i = 0; i < $('.swiper-pagination-switch').length; i++) {
		if ($('.swiper-pagination-switch').eq(i).hasClass('swiper-active-switch') === true) {
			return i;
		}
	}
}
function getUrlParam(name){
	var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
	var r = window.location.search.substr(1).match(reg);  //匹配目标参数
	if (r!=null) return decodeURI(r[2]); return null; //返回参数值
}
